﻿@model HotelRegistrationSystem.Models.HotelSearchModel

@using (Html.BeginForm("Index", "Hotel", FormMethod.Post))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div class="row">
        <div class="row">
            <div id="search-header" class="six columns" >
                <h1>Find your place</h1>
            </div>
        </div>
        <div class="row">
            <div class="six columns">
                <div class="row">
                    <div class="six columns" >
                        <h4>By hotel data</h4>
                    </div>
                </div>
                <div class="row">
                    <div class="six columns">
                        @Html.LabelFor(model => model.Name)
                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>
                    <div class="six columns">
                    </div>
                </div>

                <div class="row">
                    <div class="six columns">
                        @Html.LabelFor(model => model.RoomsCountMin)
                        @Html.EditorFor(model => model.RoomsCountMin)
                        @Html.ValidationMessageFor(model => model.RoomsCountMin)
                    </div>
                    <div class="six columns">
                        @Html.LabelFor(model => model.BedsCountMin)
                        @Html.EditorFor(model => model.BedsCountMin)
                        @Html.ValidationMessageFor(model => model.BedsCountMin)
                    </div>
                </div>

                <div class="row">
                    <div class="six columns">
                        @Html.LabelFor(model => model.StarsMin)
                        @Html.EditorFor(model => model.StarsMin)
                        @Html.ValidationMessageFor(model => model.StarsMin)
                    </div>
                    <div class="six columns">
                        @Html.LabelFor(model => model.StarsMax)
                        @Html.EditorFor(model => model.StarsMax)
                        @Html.ValidationMessageFor(model => model.StarsMax)
                    </div>
                </div>

                <div class="row">
                    <div class="six columns">
                        @Html.LabelFor(model => model.HotelTypeId)
                        @Html.DropDownList("HotelTypeId", "")
                        @Html.ValidationMessageFor(model => model.HotelTypeId)
                    </div>
                    <div class="six columns">
                        @Html.LabelFor(model => model.ReservationTypeId)
                        @Html.DropDownList("ReservationTypeId", "")
                        @Html.ValidationMessageFor(model => model.ReservationTypeId)
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="six columns">
                <div class="row">
                    <div class="six columns" >
                        <h4>By location</h4>
                    </div>
                </div>
                <div class="row">
                    <div class="six columns">
                        @Html.LabelFor(model => model.Country)
                        @Html.EditorFor(model => model.Country)
                        @Html.ValidationMessageFor(model => model.Country)
                    </div>
                    <div class="six columns">
                        @Html.LabelFor(model => model.Region)
                        @Html.EditorFor(model => model.Region)
                        @Html.ValidationMessageFor(model => model.Region)
                    </div>
                </div>

                <div class="row">
                    <div class="six columns">
                        @Html.LabelFor(model => model.AddressId)
                        @Html.DropDownList("AddressId", "")
                        @Html.ValidationMessageFor(model => model.AddressId)
                    </div>
                    <div class="six columns">
                        @Html.LabelFor(model => model.Street)
                        @Html.EditorFor(model => model.Street)
                        @Html.ValidationMessageFor(model => model.Street)
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="six columns">
            <input type="submit" value="Search" class="button small success" />
        </div>
    </div>
}